package com.tpp.threat_perception_platform.controller;

import com.tpp.threat_perception_platform.param.MyParam;
import com.tpp.threat_perception_platform.response.ResponseResult;
import com.tpp.threat_perception_platform.service.HostLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogController {
    @Autowired
    private HostLogService hostLogService;

    /**
     * 日志列表
     * @param param
     * @return
     */
    @PostMapping("/log/list")
    public ResponseResult hostLogList(MyParam param){return hostLogService.hostLogList(param);}

    /**
     * 登录日志列表
     * @param param
     * @return
     */
    @PostMapping("/login_log/list")
    public ResponseResult hostLoginLogList(MyParam param){return hostLogService.hostLoginLogList(param);}

    /**
            * 登录日志列表
     * @param param
     * @return
             */
    @PostMapping("/account_log/list")
    public ResponseResult accountLoginLogList(MyParam param){return hostLogService.hostAccountLogList(param);}
}
